package com.ruoyi.project.easyexcel;

import com.alibaba.excel.write.style.row.AbstractRowHeightStyleStrategy;
import org.apache.poi.ss.usermodel.Row;

/**
 * @Author huyunqiang
 * @Description 自定义行高
 * @Date 2023/6/30 17:05
 **/
public class RowHeightStyleStrategy extends AbstractRowHeightStyleStrategy {

    protected void setHeadColumnHeight(Row row, int relativeRowIndex) {
        // 设置 头 行高
        row.setHeightInPoints((float) 25);
    }

    protected void setContentColumnHeight(Row row, int relativeRowIndex) {
        // 设置 内容 行高
        row.setHeightInPoints((float) 25);
    }
}
